package com.come4loves.game.module.card.constant;

public enum Quality {
	
	/**
	 * 1白
	   2 綠
	   3藍
	   4紫
	   5銀
	   6 金
	 */
	NONE,
	
	WHITE,
	
	GREEN,
	
	BLUE,
	
	PURPLE,
	
	SILVER,
	
	GOLD;
	
	public static Quality getQualityType(int code) {
		for (Quality type : values()) {
			if (type.ordinal() == code) {
				return type;
			}
		}
		return NONE;
	}
}
